using System;
using System.Collections.Generic;
using System.Text;
using Cores;
using DAOLayer;
using System.Data;
namespace BUSLayer
{
    public class TaiKhoanBus
    {
        TaiKhoanDao TKdao;
        public static string Encrypte(string inputString)
        {    
            return TaiKhoanDao.Encrypte(inputString);
        }
        public int KTUser(string username, string password)
        {
            if (username == "" || password =="")
                return 0;
            TKdao = new TaiKhoanDao();
            return TKdao.KTUser(username, password);
        }
        public int LayMaTK(string username, string password)
        {
            TKdao = new TaiKhoanDao();
            int kq = TKdao.LayMaTaiKhoan(username, password);
            return kq;
        }
    }
}
